package james.gan.serialization.api;

public interface Serialization {

	// ObjectOutput serialize(URL url, OutputStream output) throws IOException;

	// ObjectInput deserialize(URL url, InputStream input) throws IOException;

	<T> byte[] serialize(T obj);

	<T> Object deserialize(byte[] bytes, Class<T> clazz);
}
